<template>
  <a-layout>
    <new-nav-bar class="top-bar"></new-nav-bar>
    <a-layout-content class="main-container">
      <!-- <div class="main-title"
           v-if="title !== ''">{{ title }}</div> -->
      <router-view />
    </a-layout-content>
  </a-layout>
</template>

<script>
import NewNavBarTeacher from "../components/common/NewNavBarTeacher";
// import { TrainRouterMap } from "../../common/constant.js";

export default {
  name:'TrainingLayout',
  data () {
    // const currentRouter = this.$router.history.current.name;
    return {
      // title: TrainRouterMap.find((i) => i.name === currentRouter).title,
    };
  },
  components: {
    NewNavBar: NewNavBarTeacher,
  },
};
</script>

<style lang="less" scoped>
.top-bar {
  background-color: white;
}

.main-container {
  // background-color: #f4f4f5;
  margin: 0 15%;
  margin-top: 90px;
  min-height: calc(100vh - 90px);
  padding-top: 20px;

  .main-title {
    margin-bottom: 20px;
    // margin-top: 110px;
    height: 25px;
    font-size: 18px;
    font-family: PingFang SC, sans-serif;
    font-weight: bold;
    line-height: 25px;
    color: #242425;
  }
}
</style>
